<?php
/**
* @version		1.0: mod_status.php
* @package		Joomla
*/

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

global $task;

$output = '';

if ($task == 'edit' || $task == 'editA' || JRequest::getInt('hidemainmenu') ) {
	 // Print the logout message
	 $output = "<span class=\"logout\">".JText::_('Logout')."</span>";
} else {
	// Print the logout message
	$output = "<span class=\"logout\"><a href=\"index.php?option=com_login&amp;task=logout\">".JText::_('Logout')."</a></span>";
}

echo $output; 